#include <stdio.h>

int main(){
    FILE *fp;
    fp=tmpfile();
    char buffer[L_tmpnam];
    tmpnam(buffer);
    rename(buffer,"/tmp/test_file");
    remove(buffer);
    return 0;
}

